﻿/**
 * @file  shared_ptr_test.hpp
 * @brief Complete Unit Test of this shared_ptr minimal implementation using Google Test library.
 *
 * Copyright (c) 2013-2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)
 *
 * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
 * or copy at http://opensource.org/licenses/MIT)
 */

#include <AtomicPriorityQueue.h>
#include <AtomicQueue.h>
#include <Task.h>
#include <iostream>
#include "CoreThread.h"
#include "DaemonThread.h"
#include "IdleThread.h"
#include "Task.h"

#include <vector>

#include <gtest/gtest.h>

TEST(AtomicQueue, empty_ptr)
{
    HTHREADPOOL_SPACENAME::AtomicQueue<int> xPtr;
    int                                     val;

    std::vector<int> values;
    int              maxPoolBatchSize = 10;
    EXPECT_EQ(false, xPtr.tryPop(val));
    EXPECT_EQ(false, xPtr.tryPop(values, maxPoolBatchSize));
}
